package com.yuan.service;
import com.yuan.bean.Book;
import java.util.List;

public interface BookInformService {

    List<Book> selectAll();

//    通过类别查找书籍
    List<Book> selectAllByCategory(String category);

    //动态条件查询
    List<Book> selectAllByCondition(String category,String bookName,String author);

    //动态修改书籍信息
    boolean updateBookInfo(Book book);

    //添加书籍
    boolean insertBook(Book book);

    //输出书籍
    boolean delByBookId(Integer bookId);

    //通过bookId查找书籍
    Book selectByBookId(Integer bookId);
}
